package cky_interface;

import java.awt.event.*;
import cky_interface.MainFrame;

public class MainFrameButtonEvent extends Object implements ActionListener{
	MainFrame mFrame;
	String name;
	public MainFrameButtonEvent(MainFrame _mFrame, String _name){
		this.mFrame = _mFrame;
		this.name = _name;
	}
	public void actionPerformed(ActionEvent evt){
		if(this.name == "Next"){
			mFrame.NextBtnPerformed();
		}
		if(this.name == "Back"){
			mFrame.BackBtnPerformed();	
		}
		if(this.name == "Play"){
			mFrame.PlayBtnPerformed();	
		}
		if(this.name == "Stop"){
			mFrame.StopBtnPerformed();	
		}
	}
}
